<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for遍历对象</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in info">{{item}}</li>
        </ul>
        <ul>
            <li v-for="(value,key) in info">{{key}}：{{value}}</li>
        </ul>
        <ul>
            <li v-for="(value,key,index) in info">{{index+1}}-{{key}}：{{value}}</li>
        </ul>
    </div>
</body>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                info :{
                    name: '张三',
                    age: 18,
                    height: 170,
                },
            },
        })
    </script>
</html>